{% extends "@XiaoZhu/base/frame.html.twig" %}

{% block content_header %}
{% endblock %}

{% block content_main %}
    <div class="main">
        <div class="container">
            <!-- BEGIN SIDEBAR & CONTENT -->
            <div class="row margin-bottom-40">
                <!-- BEGIN CONTENT -->
                <div class="col-md-12 col-sm-12">
                    <div class="content-page page-500">
                        <div class="number">
                            {{ success == 0 ? "Oh!" : "OK!" }}
                        </div>
                        <div class="details">
                            <h3 style="font-weight: bold;font-family: "Microsoft YaHei", 微软雅黑, "MicrosoftJhengHei", 华文细黑, STHeiti, MingLius">{{ msg }}</h3>
                            <p>
                                <b id="second">3</b> 秒后自动跳转……<br><br>
                                如果浏览器没有反应您可以点击这里<a href="{{ url }}" style="color: orangered">点击跳转</a><br>
                            </p>
                        </div>
                    </div>
                </div>
                <!-- END CONTENT -->
            </div>
            <!-- END SIDEBAR & CONTENT -->
        </div>
    </div>
    <script>
        jQuery(document).ready(function() {

            setInterval(function () {
                $("#second").text($("#second").text()-1);
            },999);
            setTimeout(function () {
                location.href = "{{ url }}";
            },3000);
        });
    </script>
{% endblock %}

{% block content_footer %}
{% endblock %}


{#test#}